<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK Objective-C API Reference for iOS/macOS: &lt;JCAccountCallback&gt;协议 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK Objective-C API Reference for iOS/macOS
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">构造函数</a> &#124;
<a href="protocol_j_c_account_callback-p-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">&lt;JCAccountCallback&gt;协议 参考<div class="ingroups"><a class="el" href="group___xE8_xB4_xA6_xE5_x8F_xB7_xE6_xA8_xA1_xE5_x9D_x97.html">账号模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#import &lt;<a class="el" href="_j_c_account_callback_8h_source.html">JCAccountCallback.h</a>&gt;</code></p>
<div class="dynheader">
类 &lt;JCAccountCallback&gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="protocol_j_c_account_callback-p.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
构造函数</h2></td></tr>
<tr class="memitem:aaf37440dc773151f27983be6816fab1f"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_account_callback-p.html#aaf37440dc773151f27983be6816fab1f">onQueryUserStatusResult:result:accountItemList:</a></td></tr>
<tr class="separator:aaf37440dc773151f27983be6816fab1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a736fcbd0388c57bcea5f34da736481d9"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_account_callback-p.html#a736fcbd0388c57bcea5f34da736481d9">onQueryServerUidResult:result:serverUids:</a></td></tr>
<tr class="separator:a736fcbd0388c57bcea5f34da736481d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacfe3ae5f27159ca032f76633c3b4420"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_account_callback-p.html#aacfe3ae5f27159ca032f76633c3b4420">onQueryUserIdResult:result:userIds:</a></td></tr>
<tr class="separator:aacfe3ae5f27159ca032f76633c3b4420"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6da9e43480c4e1be1fd1b7a8f1eb131f"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_account_callback-p.html#a6da9e43480c4e1be1fd1b7a8f1eb131f">onRefreshContacts:result:contacts:updateTime:fullUpdate:</a></td></tr>
<tr class="separator:a6da9e43480c4e1be1fd1b7a8f1eb131f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ce3db1f8a3209301cffc52006493718"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_account_callback-p.html#a6ce3db1f8a3209301cffc52006493718">onDealContact:result:reason:</a></td></tr>
<tr class="separator:a6ce3db1f8a3209301cffc52006493718"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7329d6adf383ae4f8a947081c9952ce1"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_account_callback-p.html#a7329d6adf383ae4f8a947081c9952ce1">onContactsChange:</a></td></tr>
<tr class="separator:a7329d6adf383ae4f8a947081c9952ce1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97029797275298a3fa223d3d23a1556d"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_j_c_account_callback-p.html#a97029797275298a3fa223d3d23a1556d">onSetContactDnd:result:reason:</a></td></tr>
<tr class="separator:a97029797275298a3fa223d3d23a1556d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p><a class="el" href="interface_j_c_account.html">JCAccount</a> 回调 </p>
</div><h2 class="groupheader">函数文档</h2>
<a id="a7329d6adf383ae4f8a947081c9952ce1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7329d6adf383ae4f8a947081c9952ce1">&#9670;&nbsp;</a></span>onContactsChange:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onContactsChange: </td>
          <td></td>
          <td class="paramtype">(NSArray&lt; <a class="el" href="interface_j_c_account_contact.html">JCAccountContact</a> * &gt; *)&#160;</td>
          <td class="paramname"><em>contacts</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>服务器联系人变化回调</p>
<p>调用 <a class="el" href="interface_j_c_account.html#aa49db7cf1881f5cad36426e8be3af9c1">refreshContacts</a> 会触发此回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">contactList</td><td>联系人列表 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a6ce3db1f8a3209301cffc52006493718"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ce3db1f8a3209301cffc52006493718">&#9670;&nbsp;</a></span>onDealContact:result:reason:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onDealContact: </td>
          <td></td>
          <td class="paramtype">(int)&#160;</td>
          <td class="paramname"><em>operationId</em></td>
        </tr>
        <tr>
          <td class="paramkey">result:</td>
          <td></td>
          <td class="paramtype">(BOOL)&#160;</td>
          <td class="paramname"><em>result</em></td>
        </tr>
        <tr>
          <td class="paramkey">reason:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="group___xE8_xB4_xA6_xE5_x8F_xB7_xE6_xA8_xA1_xE5_x9D_x97.html#ga6cc29dfac8a31b51165101bf2742144a">JCAccountReason</a>)&#160;</td>
          <td class="paramname"><em>reason</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>处理联系人结果回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">operationId</td><td>操作ID，由 <a class="el" href="interface_j_c_account.html#ac05c24d2e855e935273eac7911b411b9">dealContact</a> 接口返回 </td></tr>
    <tr><td class="paramname">result</td><td>操作是否成功<ul>
<li>true: 成功</li>
<li>false: 失败 </li>
</ul>
</td></tr>
    <tr><td class="paramname">reason</td><td>失败原因，当 result 为 false 时有效。参见：<a class="el" href="group___xE8_xB4_xA6_xE5_x8F_xB7_xE6_xA8_xA1_xE5_x9D_x97.html#ga6cc29dfac8a31b51165101bf2742144a">错误码</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a736fcbd0388c57bcea5f34da736481d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a736fcbd0388c57bcea5f34da736481d9">&#9670;&nbsp;</a></span>onQueryServerUidResult:result:serverUids:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onQueryServerUidResult: </td>
          <td></td>
          <td class="paramtype">(int)&#160;</td>
          <td class="paramname"><em>operationId</em></td>
        </tr>
        <tr>
          <td class="paramkey">result:</td>
          <td></td>
          <td class="paramtype">(BOOL)&#160;</td>
          <td class="paramname"><em>queryResult</em></td>
        </tr>
        <tr>
          <td class="paramkey">serverUids:</td>
          <td></td>
          <td class="paramtype">(NSDictionary&lt; NSString *, NSString * &gt; *)&#160;</td>
          <td class="paramname"><em>serverUids</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>查询账号 ServerUid 结果回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">operationId</td><td>操作ID, 由 <a class="el" href="interface_j_c_account.html#aec4ea63f41f105074c1b73aacf721a73">queryServerUid</a> 接口返回 </td></tr>
    <tr><td class="paramname">result</td><td>查询是否成功 成功但不一定所有查询 userId 都有 serverUid<ul>
<li>true: 成功</li>
<li>false: 失败 </li>
</ul>
</td></tr>
    <tr><td class="paramname">resultMap</td><td>查询结果 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aacfe3ae5f27159ca032f76633c3b4420"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aacfe3ae5f27159ca032f76633c3b4420">&#9670;&nbsp;</a></span>onQueryUserIdResult:result:userIds:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onQueryUserIdResult: </td>
          <td></td>
          <td class="paramtype">(int)&#160;</td>
          <td class="paramname"><em>operationId</em></td>
        </tr>
        <tr>
          <td class="paramkey">result:</td>
          <td></td>
          <td class="paramtype">(BOOL)&#160;</td>
          <td class="paramname"><em>queryResult</em></td>
        </tr>
        <tr>
          <td class="paramkey">userIds:</td>
          <td></td>
          <td class="paramtype">(NSDictionary&lt; NSString *, NSString * &gt; *)&#160;</td>
          <td class="paramname"><em>userIds</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>查询账号 UserId 结果回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">operationId</td><td>操作ID, 由 <a class="el" href="interface_j_c_account.html#ad13684e2e2a2d4cbb5792a1f3b42a2d9">queryUserId</a> 接口返回 </td></tr>
    <tr><td class="paramname">result</td><td>查询是否成功 成功但不一定所有查询 serverUid 都有 userId<ul>
<li>true: 成功</li>
<li>false: 失败 </li>
</ul>
</td></tr>
    <tr><td class="paramname">resultMap</td><td>查询结果 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aaf37440dc773151f27983be6816fab1f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf37440dc773151f27983be6816fab1f">&#9670;&nbsp;</a></span>onQueryUserStatusResult:result:accountItemList:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onQueryUserStatusResult: </td>
          <td></td>
          <td class="paramtype">(int)&#160;</td>
          <td class="paramname"><em>operationId</em></td>
        </tr>
        <tr>
          <td class="paramkey">result:</td>
          <td></td>
          <td class="paramtype">(BOOL)&#160;</td>
          <td class="paramname"><em>queryResult</em></td>
        </tr>
        <tr>
          <td class="paramkey">accountItemList:</td>
          <td></td>
          <td class="paramtype">(NSArray&lt; <a class="el" href="interface_j_c_account_item.html">JCAccountItem</a> * &gt; *)&#160;</td>
          <td class="paramname"><em>accountItemList</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>查询账号状态结果回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">operationId</td><td>操作ID, 由 <a class="el" href="interface_j_c_account.html#aec0e112ba7baa03dd867d5f92ad12c85">queryUserStatus</a> 接口返回 </td></tr>
    <tr><td class="paramname">queryResult</td><td>查询是否成功<ul>
<li>true: 成功</li>
<li>false: 失败 </li>
</ul>
</td></tr>
    <tr><td class="paramname">accountItemList</td><td>查询结果 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a6da9e43480c4e1be1fd1b7a8f1eb131f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6da9e43480c4e1be1fd1b7a8f1eb131f">&#9670;&nbsp;</a></span>onRefreshContacts:result:contacts:updateTime:fullUpdate:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onRefreshContacts: </td>
          <td></td>
          <td class="paramtype">(int)&#160;</td>
          <td class="paramname"><em>operationId</em></td>
        </tr>
        <tr>
          <td class="paramkey">result:</td>
          <td></td>
          <td class="paramtype">(BOOL)&#160;</td>
          <td class="paramname"><em>result</em></td>
        </tr>
        <tr>
          <td class="paramkey">contacts:</td>
          <td></td>
          <td class="paramtype">(NSArray&lt; <a class="el" href="interface_j_c_account_contact.html">JCAccountContact</a> * &gt; *)&#160;</td>
          <td class="paramname"><em>contacts</em></td>
        </tr>
        <tr>
          <td class="paramkey">updateTime:</td>
          <td></td>
          <td class="paramtype">(long)&#160;</td>
          <td class="paramname"><em>updateTime</em></td>
        </tr>
        <tr>
          <td class="paramkey">fullUpdate:</td>
          <td></td>
          <td class="paramtype">(bool)&#160;</td>
          <td class="paramname"><em>fullUpdate</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>查询网络联系人列表结果回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">operationId</td><td>操作ID, 由 <a class="el" href="interface_j_c_account.html#aa49db7cf1881f5cad36426e8be3af9c1">refreshContacts</a> 接口返回 </td></tr>
    <tr><td class="paramname">result</td><td>刷新是否成功<ul>
<li>true: 成功</li>
<li>false: 失败 </li>
</ul>
</td></tr>
    <tr><td class="paramname">contacts</td><td>联系人队列 </td></tr>
    <tr><td class="paramname">updateTime</td><td>服务器更新时间 </td></tr>
    <tr><td class="paramname">fullUpdate</td><td>是否全更新<ul>
<li>true: 全更新</li>
<li>false: 没有全更新 </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a97029797275298a3fa223d3d23a1556d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97029797275298a3fa223d3d23a1556d">&#9670;&nbsp;</a></span>onSetContactDnd:result:reason:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) onSetContactDnd: </td>
          <td></td>
          <td class="paramtype">(int)&#160;</td>
          <td class="paramname"><em>operationId</em></td>
        </tr>
        <tr>
          <td class="paramkey">result:</td>
          <td></td>
          <td class="paramtype">(bool)&#160;</td>
          <td class="paramname"><em>result</em></td>
        </tr>
        <tr>
          <td class="paramkey">reason:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="group___xE8_xB4_xA6_xE5_x8F_xB7_xE6_xA8_xA1_xE5_x9D_x97.html#ga6cc29dfac8a31b51165101bf2742144a">JCAccountReason</a>)&#160;</td>
          <td class="paramname"><em>reason</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置免打扰回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">operationId</td><td>操作ID，由 <a class="el" href="interface_j_c_account.html#a504f22174b3a914a88403229522e5dc1">setDnd</a> 接口返回 </td></tr>
    <tr><td class="paramname">result</td><td>操作是否成功<ul>
<li>true: 成功</li>
<li>false: 失败 </li>
</ul>
</td></tr>
    <tr><td class="paramname">reason</td><td>失败原因，当 result 为 false 时有效，参见：<a class="el" href="group___xE8_xB4_xA6_xE5_x8F_xB7_xE6_xA8_xA1_xE5_x9D_x97.html#ga6cc29dfac8a31b51165101bf2742144a">错误码</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该协议的文档由以下文件生成:<ul>
<li>JCSDKOC/JCSDKOC/JCAccount/<a class="el" href="_j_c_account_callback_8h_source.html">JCAccountCallback.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
